IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[hottest_painting]') AND TYPE in (N'U'))
BEGIN
CREATE Table [hottest_painting]
(
    hottest_painting_id INT IDENTITY(1,1) NOT NULL,
    painting_id int NOT NULL,
    create_date DATETIME DEFAULT(GETDATE()),
    update_date DATETIME,
	CONSTRAINT PK_hottest_painting_id PRIMARY KEY CLUSTERED (hottest_painting_id)
) 
END
GO